<template>
	<view class="content">
		<image class="logo" :src="baseInfo.thumb" mode="aspectFit" @click="lack"></image>
	<view class="header-content">
		<view class="header-left">
			<view class="line"></view>
			<text class="header-title">改造案例</text>
		</view>
		<image class="header-content-share" src="../../static/share.png"></image>
	</view>
	<view class="" v-for="(item,index) in list" :key="index">
		<image class="regai-image" :src="item.img_url" mode="aspectFit" @click="lack"></image>
		<view class="content_list">
			<text>— {{item.tag_name}} —</text>
		</view>
	</view>

	<button type="primary">确定预约</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [],
				id:"",
				page:'',
				limit:"",
				baseInfo:{}
			}
		},
		onLoad(id) {
			uni.request({
				url: 'https://baiyi.kent.work/api/v1/system/getConstructionDetail',
				method: 'post',
				data: {
					id: id, 
					page: 1, 
					limit: 10 
				},
				success: res => {
					this.list = res.data.data.list.list
					this.baseInfo=res.data.data.baseInfo
					console.log(res)
					uni.setNavigationBarTitle({
						title:res.data.data.baseInfo.name
					})
				}
			})
		},
		methods: {
			lack() {
				uni.navigateTo({
					url: "../../pages/lack/lack"
				})
			}
		},
	
	}
</script>

<style>
	button{
		width: 328rpx;
		height: 80rpx;
		line-height: 80rpx;
		text-align: center;
		background: #3d9c36;
		border-radius: 8rpx;
		margin-top: 80rpx;
		margin-bottom: 40rpx;
		
	}
	.content_list text{
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-top: 14rpx;
		font-size: 24rpx;
	}
	.content_list{
		width: 670rpx;
		height: 74rpx;
		background: #ffffff;
		border-radius: 0rpx 0rpx 12rpx 12rpx;
	}
	.regai-image {
		width: 100%;
		height: 406rpx;
		vertical-align: top;
		
	}
	.regai-image_one {
		width: 100%;
		height: 406rpx;
		margin-top: 20rpx;
		vertical-align: top;
		}
	.content {
		box-sizing: border-box;
		width: 100vw;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.logo {
		width: 750rpx;
		height: 450rpx;
		margin-top: 12rpx;
	}
	.header-content {
		box-sizing: border-box;
		width: 100%;
		display: flex;
		align-items: center;
		padding: 40rpx 40rpx 26rpx 40rpx;
		justify-content: space-between;
	}
	.header-left {
		display: flex;
		align-items: center;
	}
	.header-title {
		font-family: PingFang SC, PingFang SC-Bold;
		color: #333333;
		font-size: 32rpx;
		font-weight: 700;
		margin-left: 20rpx;
	}
	.header-content-share {
		width: 38rpx;
		height: 38rpx;
	}
	.line {
		width: 8rpx;
		height: 30rpx;
		background: #3d9c36;
	}
</style>